package com.gewu.teday.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

class MoneyAdapter(var fragmentManager: FragmentManager,var  list: List<ViewpagerBean>, var be:Int) : FragmentStatePagerAdapter( fragmentManager,be) {

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list[position].fragment
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return list[position].pageteitle
    }
}


data class ViewpagerBean(var fragment:Fragment,var pageteitle:String)
